package com.taobushi.entity;





import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mht
 * @since 2019-09-26
 */
@TableName("t_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("user_name")
    private String user_name;
    @TableField("user_cn_name")
    private String user_cn_name;
    @TableField("user_pass")
    private String user_pass;
    @TableField("email")
    private String email;
    @TableField("gender")
    private String gender;
    @TableField("create_dt")
    private Date create_dt;
    @TableField("create_by")
    private String create_by;
    @TableField("mo_dt")
    private Date mo_dt;
    @TableField("mo_by")
    private String mo_by;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
    public String getUser_cn_name() {
        return user_cn_name;
    }

    public void setUser_cn_name(String user_cn_name) {
        this.user_cn_name = user_cn_name;
    }
    public String getUser_pass() {
        return user_pass;
    }

    public void setUser_pass(String user_pass) {
        this.user_pass = user_pass;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    public Date getCreate_dt() {
        return create_dt;
    }

    public void setCreate_dt(Date create_dt) {
        this.create_dt = create_dt;
    }
    public String getCreate_by() {
        return create_by;
    }

    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }
    public Date getMo_dt() {
        return mo_dt;
    }

    public void setMo_dt(Date mo_dt) {
        this.mo_dt = mo_dt;
    }
    public String getMo_by() {
        return mo_by;
    }

    public void setMo_by(String mo_by) {
        this.mo_by = mo_by;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
        "id=" + id +
        ", user_name=" + user_name +
        ", user_cn_name=" + user_cn_name +
        ", user_pass=" + user_pass +
        ", email=" + email +
        ", gender=" + gender +
        ", create_dt=" + create_dt +
        ", create_by=" + create_by +
        ", mo_dt=" + mo_dt +
        ", mo_by=" + mo_by +
        "}";
    }
}
